//-------------------------------------------------------------------
//	Copyright (c) 2013-2014  Zhirnov Andrey
//	This file is part of the "UX OpwnGL Framework" project.
//	See copyright notice in "UX_GL_Framework.h".
//-------------------------------------------------------------------
/*
	File extensions:
		prg		 - gl shader program
		slib	- gl shader library, for #import proprocessor
		cl		- cl program

	CL Options:
		FP		- float precission 16, 32, 64
		DEBUG	- enable debug checks
*/

#pragma once

#include <Includes.h>

namespace Framework
{

	//
	// Shader Loader
	//

	struct ShaderLoader
	{
	public:
		static bool Load (GLProgramPtr &program, uni_c_string filename, uni_c_string preprocessor = null);
		static bool Load (CLProgramPtr &program, uni_c_string filename, uni_c_string preprocessor = null, uni_c_string options = null);

		static void FreeCache ();
	};

}	// Framework
